import http from "@/utils/request";
import type { UpdateInfo } from "@/pages/UpdateInfo"

export async function getUserInfo() {
    return await http('/user/info', 'get');
}

export async function updateCaptcha(address: string) {
    return await http('/user/update/captcha', 'get', { address });
}

export async function updateInfo(updateInfo: UpdateInfo) {
    return await http('/user/update', 'post', updateInfo);
}
